package com.oauth.service.application.global.beans;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;

public class Dob {
	private int mDay;
	private int mMonth;
	private int mYear;

	/**
	 * Default year set to 2000.
	 * 
	 * @param pDay
	 * @param pMonth
	 */
	public Dob(int pDay, int pMonth) {
		super();
		mDay = pDay;
		mMonth = pMonth;
		mYear = 2000; // default.
	}

	public Dob(int pDay, int pMonth, int pYear) {
		super();
		mDay = pDay;
		mMonth = pMonth;
		mYear = pYear;
	}

	/**
	 * @return the day
	 */
	public int getDay() {
		return mDay;
	}

	/**
	 * @param pDay
	 *            the day to set
	 */
	public void setDay(int pDay) {
		mDay = pDay;
	}

	/**
	 * @return the month
	 */
	public int getMonth() {
		return mMonth;
	}

	/**
	 * @param pMonth
	 *            the month to set
	 */
	public void setMonth(int pMonth) {
		mMonth = pMonth;
	}

	/**
	 * @return the year
	 */
	public int getYear() {
		return mYear;
	}

	/**
	 * @param pYear
	 *            the year to set
	 */
	public void setYear(int pYear) {
		mYear = pYear;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}

}
